package c.e.b.h.e.k;

import android.content.Context;
import c.e.a.b.b.j.d;
import c.e.a.b.g.f;
import c.e.a.b.g.g;
import c.e.b.h.e.k.t.n;
import c.e.b.h.e.s.i.b;
import java.io.File;
import java.util.Arrays;
import java.util.concurrent.Executor;

/* compiled from: CrashlyticsController */
public class x implements f<b, Void> {
    public final /* synthetic */ Executor a;
    public final /* synthetic */ y b;

    public x(y yVar, Executor executor) {
        this.b = yVar;
        this.a = executor;
    }

    public g a(Object obj) throws Exception {
        b bVar = (b) obj;
        if (bVar == null) {
            c.e.b.h.e.b.a.f("Received null app settings, cannot send reports at crash time.");
            return d.b(null);
        }
        t tVar = this.b.e;
        Context context = tVar.a;
        c.e.b.h.e.q.b a = ((c0) tVar.j).a(bVar);
        for (File file : tVar.q()) {
            t.c(bVar.e, file);
            c.e.b.h.e.q.c.d dVar = new c.e.b.h.e.q.c.d(file, t.C);
            h hVar = tVar.e;
            hVar.b(new i(hVar, new n(context, dVar, a, true)));
        }
        return d.g(Arrays.asList(new g[]{t.b(this.b.e), this.b.e.s.a(this.a, m0.a(bVar))}));
    }
}
